package com.autologistics.service;

import java.util.List;

import com.autologistics.model.Admin;
import com.autologistics.util.PageBean;

public interface AdminService {
	/**
	 * @param ac
	 * @param pwd
	 * @return ����Ա or null
	 * @author cl
	 */
	public Admin getByAccountPwd(String ac ,String pwd);
	public List<Admin> getByRole(int role);
	public Admin getById(int id);
	public Admin getByAccoint(String ac);
	public List<Admin> getExceptAll();

	public void save(Admin admin);
	public void update(Admin admin);
	public PageBean queryForOnePage(final int pageSize, int page,int allRow);
}
